//
//  ANPicsCell.m
//  AttitudeNews
//
//  Created by 刘晓萌 on 15/11/23.
//  Copyright © 2015年 刘晓萌. All rights reserved.
//

#import "ANPicsCell.h"
#import "ANNewsModel.h"
#import "UIImageView+WebCache.h"

@interface ANPicsCell ()
@property (weak, nonatomic) IBOutlet UILabel *newsTitle;
@property (weak, nonatomic) IBOutlet UIImageView *newsPic_1;
@property (weak, nonatomic) IBOutlet UIImageView *newsPic_2;
@property (weak, nonatomic) IBOutlet UIImageView *newsPic_3;

@end

@implementation ANPicsCell

/**
 * 处理model传来的值
 */
-(void)makeData{
    self.newsTitle.text = self.newsModel.title_lxm;
    NSDictionary *dicPicURL2 = self.newsModel.imgextra[0];
    NSDictionary *dicPicURL3 = self.newsModel.imgextra[1];
    [self.newsPic_1 sd_setImageWithURL:[NSURL URLWithString:self.newsModel.imgsrc]];
    [self.newsPic_2 sd_setImageWithURL:[NSURL URLWithString:dicPicURL2[@"imgsrc"]]];
    [self.newsPic_3 sd_setImageWithURL:[NSURL URLWithString:dicPicURL3[@"imgsrc"]]];
}


- (void)awakeFromNib {

}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];


}

@end
